package com.waitingsnow.common.model.config
{
/**
 * 
 * @author waitingsnow
 * $Id: AppConfig.as 2 2012-05-17 10:10:03Z cgslendy@gmail.com $
 */
public class AppConfig
{
	//==========================================================================
	//  Class variables
	//==========================================================================
	//ruby 
	static public const RUBY_GETDATA_METHOD:String = "AmfService.load_data";
	static public const VIDEO_UPLOAD_URL:String = "rtmp://upload.video.9nali.com/nali";
	static public const VIDEO_ACCEPT_URL:String = "rtmp://video.9nali.com/nali";
	static public const VIDEO_CONN_TOKEN:String = "nalidilian";
	
	//flash to js
	static public const SEND_GIFT_TO_JS:String = "sendGift";
	static public const BUY_TICKET_TO_JS:String = "buyTicket";
	static public const START_LIVE_TO_JS:String = "startLive";
	static public const END_LIVE_TO_JS:String = "endLive";
	static public const RECHARGE_TO_JS:String = "recharge";
	static public const GET_GIFTS_TO_JS:String = "getGifts";
	static public const CLOSE_GIFT_TO_JS:String = "closeGift";
	static public const CHECK_START_LIVE_TO_JS:String = "checkStartLive";
	static public const LOAD_DATA_TO_JS:String = "loadData";
	static public const FLASH_READY_TO_JS:String = "flashReady";
	static public const SHARE_TO_JS:String = "share";
	static public const CLOSE_LIGHT_TO_JS:String = "closeLight";
	static public const GOTO_MESSAGE_TO_JS:String = "gotoMessage";
	static public const GOTO_FREE_TICKETS_TO_JS:String = "goToFreeTickets";
	static public const GOTO_GROUP_TICKETS_TO_JS:String = "goToGroupTickets";
	static public const START_POD_CAST_TO_JS:String = "startPodcast";
	static public const END_POD_CAST_TO_JS:String = "endPodcast";
	static public const VIDEO_STREAM_BUFFER_TO_JS:String = "videoStreamBuffer";
	
	//js to flash
	static public const SEND_GIFT_TO_SWF:String = "sendGiftToSwf";
	static public const PLAY_GIFT_TO_SWF:String = "playGiftToSwf";
	static public const UPDATE_TICKET_TO_SWF:String = "updateTicketToSwf";
	static public const UPDATE_AUDIANCE_TO_SWF:String = "updateAudianceToSwf";
	static public const UPDATE_FIRE_WORKS_TO_SWF:String = "updateFireWorksToSwf";
	static public const UPDATE_INCOME_TO_SWF:String = "updateIncomeToSwf";
	static public const START_LIVE_TO_SWF:String = "startLiveToSwf";
	static public const END_LIVE_TO_SWF:String = "endLiveToSwf";
	static public const CHANGE_SIZE_TO_SWF:String = "changeSizeToSwf";
	static public const UPDATE_LEFT_TICKET_TO_SWF:String = "updateLeftTicketToSwf";
	static public const CHECK_START_LIVE_TO_SWF:String = "checkStartLiveToSwf";
	static public const FIREWORKS_READY_TO_SWF:String = "fireWorksReadyToSwf";
	
	//swf size 592*376 918*559 43
	static public var swfWidth:int = 592;
	static public var swfHeight:int = 376;
	static public var wideFlag:Boolean = false;
	static public var bottomHeight:int = 43;
}
}

/*送礼：
sendGiftToJs(giftID:uint, count:uint);
sendGiftToSwf(giftID, result:int);//result 0失败 1成功
playGiftToSwf(giftID:uint, count:uint, type:int = 1);
getGifts():Array;	//获得礼物数组
更新状态：
updateTicketToSwf(value:uint);
updateAudianceToSwf(value:uint);
updateFireWorksToSwf(value:uint);
updateIncomeToSwf(value:uint);
updateLeftTicketToSwf(value:uint);
买票：
buyTicketToJs();
开始直播：
startLiveToJs(); startLiveToSwf();
结束直播：
endLiveToJs(); endLiveToSwf();
充值：
rechargeToJs();
更改尺寸 0正常 1宽屏
changeSizeToSwf(wideFlag:int);
*/